package com.base.common.annotions;

import org.springframework.transaction.annotation.Transactional;

import java.lang.annotation.*;

/**
 * 写操作并且Exception回滚事务注解
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Transactional(rollbackFor = Exception.class)
public @interface WriteTransactional {
}
